import { SUN_INTENSITY_DEFAULT, SUN_INTENSITY_MAX, SUN_INTENSITY_MIN } from "@/constants/const";
import { sunlight } from "@/objects/sunlight";
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

export function setGUI() {
  const gui = new GUI();
  const params = {
    intensity: SUN_INTENSITY_DEFAULT
  };
  gui.add(params, "intensity", SUN_INTENSITY_MIN, SUN_INTENSITY_MAX).onChange(val => {
    sunlight.mesh.intensity = val;
  });
}
